package com.ruoyi.system.wnjk.domain.po;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品信息对象 shop_item
 *
 * @author ruoyi
 * @date 2025-03-05
 */
public class ShopItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Integer stock;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String image;

    /** 分类id */
    @Excel(name = "分类id")
    private Long categoryId;

    /** 品牌名称 */
    @Excel(name = "品牌名称")
    private String brand;

    /** 规格 */
    @Excel(name = "规格")
    private String spec;

    /** 销量 */
    @Excel(name = "销量")
    private Long sold;

    /** 评论数 */
    @Excel(name = "评论数")
    private Long commentCount;

    /** 是否是推广广告，true/false */
    @Excel(name = "是否是推广广告，true/false")
    private Integer isAD;

    /** 商品状态 1-正常，2-下架，3-删除 */
    @Excel(name = "商品状态 1-正常，2-下架，3-删除")
    private Long status;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long creater;

    /** 修改人 */
    @Excel(name = "修改人")
    private Long updater;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setStock(Integer stock)
    {
        this.stock = stock;
    }

    public Integer getStock()
    {
        return stock;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }
    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setBrand(String brand)
    {
        this.brand = brand;
    }

    public String getBrand()
    {
        return brand;
    }
    public void setSpec(String spec)
    {
        this.spec = spec;
    }

    public String getSpec()
    {
        return spec;
    }
    public void setSold(Long sold)
    {
        this.sold = sold;
    }

    public Long getSold()
    {
        return sold;
    }
    public void setCommentCount(Long commentCount)
    {
        this.commentCount = commentCount;
    }

    public Long getCommentCount()
    {
        return commentCount;
    }
    public void setIsAD(Integer isAD)
    {
        this.isAD = isAD;
    }

    public Integer getIsAD()
    {
        return isAD;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setCreater(Long creater)
    {
        this.creater = creater;
    }

    public Long getCreater()
    {
        return creater;
    }
    public void setUpdater(Long updater)
    {
        this.updater = updater;
    }

    public Long getUpdater()
    {
        return updater;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("price", getPrice())
            .append("stock", getStock())
            .append("image", getImage())
            .append("categoryId", getCategoryId())
            .append("brand", getBrand())
            .append("spec", getSpec())
            .append("sold", getSold())
            .append("commentCount", getCommentCount())
            .append("isAD", getIsAD())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("creater", getCreater())
            .append("updater", getUpdater())
            .toString();
    }
}
